package com.technology.education.widget

import android.content.Context
import android.util.AttributeSet
import cn.jzvd.JzvdStd
import me.hgj.jetpackmvvm.ext.view.visible

/**
 *@author:create by BZY
 *Date: 2022/3/11 14
 */
class MyVideoPlayer:JzvdStd {
    constructor(context: Context?) : super(context)
    constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)

    override fun setScreenNormal() {
        super.setScreenNormal()
        backButton?.visible()
        titleTextView.textSize = 16f
    }

    override fun clickBack() {
        super.clickBack()
        if (!backPress()){
           watchBack?.invoke()
        }
    }
    var watchBack: (() -> Unit?)? =null
}